<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>自定义显示当前的日期</title>
</head>

<body>
<span id="showtime" >
<script language="JavaScript1.2" type="text/javascript">
<!--
  var  today , year , day  ;
  today = new Date () ; 
  year=today.getFullYear() ;
  day=today.getDate() ;
  var isMonth = new Array("1月","2月","3月","4月","5月","6月" ,  
				          "7月","8月","9月","10月","11月","12月") ;
  var isDay = ["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]
  document.write(year+"年"+isMonth[today.getMonth()]+day+"日  "
				  +isDay[today.getDay()]) ;
//-->
</script>
</span>
</body>
</html>
